<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.2.1.min.js"></script>
    <style>
        #box {
            width: 500px;
            height: 300px;
            background-color: #ccc;
            font-size: 30px;
            margin: 10px auto;
            text-align: center;
        }
        
        #box p {
            text-align: center;
            padding: 50px;
        }
        
        #box span {
            color: red;
        }
    </style>
</head>

<body>

    <div id="box">
        <p>提交成功</p>
        <a href="http://www.baidu.com">
            <span id="second">5</span>秒后系统自动跳转
        </a>
    </div>
</body>
<script>
    $(function() {

        var id = setInterval(() => {
            var time = $("#second").html();
            if (--time > 0) {
                $("#second").html(time);
            } else {
                clearInterval(id);
                window.location.href = 'http://www.baidu.com';
            }
        }, 1000);

    })
</script>

</html>